package com.systop.service;

import com.systop.pojo.Admin;
import com.systop.service.impl.AdminServiceImpl;
import com.systop.unti.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author zhangnan
 * @Data 2020/7/030 上午 10:50
 * @Descriiption
 **/
@FeignClient(value = "admin",fallback = AdminServiceImpl.class)
public interface AdminService {
    //管理员登陆（调用admin模块/admin_login）
    @RequestMapping(value="/admin_login",method= RequestMethod.POST)
    ResponseResult login (@RequestParam("admin_name") String admin_name, @RequestParam("admin_password")String admin_password);
    //管理员注册（）
    @RequestMapping(value="/admin_loginin",method= RequestMethod.POST)
    ResponseResult loginin(@RequestParam("admin_name") String admin_name, @RequestParam("admin_password")String admin_password);
}
